package com.example.demo.common.exception;/**
 * Created by kete on 2017-10-23.
 */

import com.example.demo.core.support.StrKit;

/**
 * 作者：kete
 * 创建时间：2017-10-23 16:42
 * 功能描述：
 * 版本：
 */
public class ToolBoxException extends RuntimeException {

    private static final long serialVersionUID = 8247610319171014183L;

    public ToolBoxException(Throwable e) {
        super(e.getMessage(), e);
    }

    public ToolBoxException(String message) {
        super(message);
    }

    public ToolBoxException(String messageTemplate, Object... params) {
        super(StrKit.format(messageTemplate, params));
    }

    public ToolBoxException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public ToolBoxException(Throwable throwable, String messageTemplate, Object... params) {
        super(StrKit.format(messageTemplate, params), throwable);
    }
}
